<template>
	<view class="box">
		<view class="qiye" v-for="(item,index) in list" :key="index">
			<uni-forms ref="valiForm" >
				<uni-forms-item class="top-title" labelWidth="90px" name="qyname" label="企业名称" labelAlign="right">
					<view class="qiyemsg">
						{{item.qyname}}
					</view>
				</uni-forms-item>
				<view class="qiye-title">
					<text>运营者信息</text>
				</view>
				<view>
					<uni-forms-item labelWidth="90px" name="yyname" label="运营者姓名" labelAlign="right">
						<view class="qiyemsg">
							{{item.yyname}}
						</view>
					</uni-forms-item>
				</view>
				<view>
					<uni-forms-item labelWidth="90px" name="phone" label="手机号" labelAlign="right">
						<view class="qiyemsg">
							{{item.phone}}
						</view>
					</uni-forms-item>
				</view>
				<view>
					<uni-forms-item labelWidth="90px" name="email" label="邮箱" labelAlign="right">
						<view class="qiyemsg">
							{{item.email}}
						</view>
					</uni-forms-item>
				</view>
				<view class="">
					<view class="qiye-title">
						<text></text>
					</view>
					<view class="qiye-picker">
						<uni-forms-item labelWidth="90px" name="classes" label="企业分类" labelAlign="right">
							<view class="qiyemsg">
								{{item.classes}}
							</view>
						</uni-forms-item>
					</view>
					<uni-forms-item labelWidth="90px" name="capital" label="注册资金" labelAlign="right">
						<view class="qiyemsg">
							{{item.capital}}万元
						</view>
					</uni-forms-item>
					<view class="qiye-title">
						<text>统一社会信用代码</text>
					</view>
					<uni-forms-item class='code-input' labelWidth="10px" name="creditcode"  labelAlign="right">
						<view class="qiyemsg">
							{{item.creditcode}}
						</view>
					</uni-forms-item>
				</view>



			</uni-forms>

		</view>
	</view>
</template>

<script>
	import axios from "axios"
	import Cookies from "js-cookie"
	export default {
		data() {
			return {
				list:[{}],
				// list: [{
				// 	qyname: 'sio',
				// 	yyname: 'xxx',
				// 	phone: '134222',
				// 	email: '8@qq.com',
				// 	classes: '餐饮食品',
				// 	capital: '2',
				// 	creditcode: '91110108551385082Q'
				// }]
			}

		},
		mounted() {
			const username = Cookies.get('username')
			axios.get('/api/getqycertmsg?username='+username)
			.then(res =>{
				console.log(res.data);
				this.list = res.data
			})
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.top-title{
		margin-top: 0px;
		padding-top: 10px;
	}
	.box {
		width: 100%;
		// height: calc(100vh - 90px);
		position: relative;
		top: 0;

		.navbar {
			width: 100%;
			height: 100%;
			position: sticky;
			top: 0;

		}
	}

	.qiye {
		width: 100%;
		height: 100%;
		padding: 0 5% 20rpx 5%;
	}

	.qiye-title {

		padding: 5px 2%;
		background-color: #CCCCCC;
		color: #666666;
	}

	.qiyemsg {
		height: 100%;
		line-height: 64rpx;
		color: #CCCCCC;
		// font-size: 36rpx;
	}
	.code-input{
		margin-top: 10px;
	}
</style>
